Greetings & Salutations!  

If you’re reading this, you have been assigned to replicate Votes on Fire! Thanks in advance for all your help! This readme should walk you through the basics of what you’ll need to do to replicate this paper.

You’ll first need to open votefire_analysis_turnout.Rmd in RStudio. Next, you’ll need to set the working directory on line 61 to: 

	setwd(“/Users/**your computer’s username**/Draft3-studentreplication/data/	processed/”)

This should allow you to upload the two main data files, as well as replicate the main tables and figures in our analysis. The two main data files are: "reg_indv_voters.csv" and "reg_indv_voters.csv" (both of these were compiled in a separate R script, the details on which are provided below). Our group encountered several errors while attempting to upload our files to Dataverse, so please ensure you have them in your downloaded replication package immediately and that you are able to open them. 

Next, you will need to change the "firePath" object on line 479. Here, you will need to change the path to: 

	setwd(“/Users/**your computer’s username**/Draft3-studentreplication/data/processed/BA_PRECINCT_INT/”)


Next, you will need to change the working directory on line 515. This will allow you to save your own copy of the map of wildfires in Washington state in 2020. Here, you can change the working directory to: 

	setwd(“/Users/**your computer’s username**/Draft3-studentreplication/”)


This will allow you to save the figure to the main replication folder. 



Due to file size limitations, we’ve included just the dataset we use for our analysis in the .Rmd for your use to replicate our analysis. We do however also include a script called "DataMerge-Complete.R" which creates our final dataset from scratch, aside from the fire exposure data. If you wish to replicate our entire cleaning process, including the fire exposure data, those materials are available in a shared Google Drive, linked below:
https://drive.google.com/drive/folders/1XjJfSOZD4vIzbuNwQKfm3UAqEmCic0E6?usp=sharing

To create the GIS fire exposure data, please see the R script titled "BUNRED_AREA_WA-2.R". Detailed instructions are provided in the script. 
